<style>
.fui-tab a{
    color: #eee;
}
.fui-tab:after {
    height: 0;
    background: none;
}
.fui-tab.fui-tab-success a.active {
    color: #fff;
	font-weight:bold;
}
.banyuan{
	padding:0.5rem;
	height: 7rem;
	border-radius: 7rem 7rem 0 0;
	border: 4px solid #f60;
}
</style>
<div class="fui-page fui-page-current page-commission-down" ng-init="pagedata.get_list()">
    <div class="fui-content">
		<div style="background: {{main.syscolor||'#05c175'}};padding:0.5rem;margin-top:0;padding-bottom:1.6rem;height:5rem">
		<div class="fui-tab fui-tab-success" style="background:none">
			<a ng-class="{'active':pagedata.params.status==0}" href="javascript:;" ng-click="pagedata.params.status=0;tool.get_list('jy_yxgz/orderlog_check/list/',true)">待审核</a>
			<a ng-class="{'active':pagedata.params.status==1}" href="javascript:;" ng-click="pagedata.params.status=1;tool.get_list('jy_yxgz/orderlog_check/list/',true)">已审核</a>
			<a ng-class="{'active':pagedata.params.status==2}" href="javascript:;" ng-click="pagedata.params.status=2;tool.get_list('jy_yxgz/orderlog_check/list/',true)">审核不通过</a>
		</div>
		 </div>
		 <div style="padding:0.5rem;margin-top:-2.3rem">
		 <div class="radius" style="background:#fff">
		 <div class="fui-cell-group radius" style="margin-top:0">
            <div class="fui-cell">
                <div class="fui-cell-info" style="padding:0 0.1rem;">
					<div class="fui-cellone" style="padding:0">
						<div class="fui-cellone-info" style="padding:0 0.1rem;">
							<select class="weui_select" style="padding:0.3rem" name="cateid2" ng-model="pagedata.params.y">
								<option ng-checked="!pagedata.params.y" value="">年份</option>
								<option ng-repeat="(key,value) in pagedata.ys" value="{{key}}">{{value}}</option>
							</select>
						</div>
						<div class="fui-cellone-info" style="padding:0 0.1rem;">
							<select class="weui_select" style="padding:0.3rem" name="cateid2" ng-model="pagedata.params.m">
								<option ng-checked="!pagedata.params.m" value="">月份</option>
								<option ng-repeat="(key,value) in pagedata.months" value="{{key}}">{{value}}</option>
							</select>
						</div>
						<div class="fui-cell-info" style="padding:0 0.1rem;font-size: 0.65rem;">
							<input type="text" class="fui-input" placeholder="员工姓名" ng-model="pagedata.params.title"/>
						</div>
					</div>
					<div class="fui-cellone" style="padding:0">
					<div class="fui-cell-info" style="padding:0.1rem;font-size: 0.65rem;">
						<input type="text" class="fui-input" placeholder="企业名称" ng-model="pagedata.params.cname"/>
					</div>
					<div class="fui-cell-info" style="padding:0.1rem;font-size: 0.65rem;">
						<input type="text" class="fui-input" placeholder="联系人姓名" ng-model="pagedata.params.username"/>
					</div>
					<div class="fui-cell-info" style="padding:0.1rem;font-size: 0.65rem;">
						<input type="text" class="fui-input" placeholder="联系人电话" ng-model="pagedata.params.mobile"/>
					</div>
					</div>
                </div>
				<div class="fui-cell-remark noremark" style="margin-left:0.3rem">
                    <i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_yxgz/orderlog_check/list/',true);"></i>
                </div>
            </div>
        </div>
		 <div class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计成交额</div>
					<div>{{pagedata.data.inall || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 待审核成交额</div>
					<div class="bold" style="font-size:1rem">{{pagedata.data.inall0 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.inday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日成交</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.inlastday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日成交</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.inall || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">累计成交</div>
								</div>
					</div>
			</div>
        </div>
		</div>
        <div ng-repeat="item in pagedata.list track by item.id" class="fui-list-group" id="container" >
			<div class="fui-list" style="height: auto">
				<div class="fui-list-inner">
					<div class="row">
						 <div class="row-text"> 
						{{item.goodsinfo.title}}
						  </div>
					</div>
					<div class="syscolor" style="font-size:0.6rem">{{item.workertitle}}</div>
					<div class="subtitle" style="font-size: .55rem;">
						提交时间：{{item.createtime}}
					</div>
					<div class="subtitle" style="font-size: .55rem;">
						成交时间：{{item.pay_time}}
					</div>
					<div class="gray" style="font-size: .55rem;">
						<span ng-if="item.username" style="padding-right:0.3rem">联系人：{{item.username ||'无'}}</span>
						<span ng-if="item.mobile" style="padding-right:0.3rem">电话：{{item.mobile ||'无'}}</span>
						<span ng-if="item.cname" style="padding-right:0.3rem">企业：{{item.cname ||'无'}}</span>
						<span ng-if="item.ordersn">单号：{{item.ordersn ||'无'}}</span>
					</div>
					<div ng-if="item.payimg" class="weui_uploader">
							<div class="weui_uploader_bd" href="javascript:;" ng-click="previewImage(item.payimg,item.payimgs);">
								<ul class="weui_uploader_files">
									<li class="weui_uploader_file" style="margin-bottom:0;background-image:url({{tomedia(item.payimg)}})"></li>
								</ul>
							</div>
					</div>
					<div ng-if="item.status==0 && item.remark" class="subtitle" style="font-size: .55rem;">
						备注：<span class="syscolor">{{item.remark}}</span>
					</div>
					<div ng-if="item.status==0" class="subtitle">
						<span href="javascript:;" ng-click="access_json('jy_yxgz/orderlog_check/sheck/id='+item.id)" class="label label-success sysbgcolor">审核</span>
					</div>
				</div>
				<div class="row-remark">
					<div style="font-size: .55rem;">成交价:{{item.price}}</div>
					<div style="font-size: .55rem;">成本:{{item.benprice}}</div>
					<div class="syscolor" style="font-size: .55rem;">{{item.statustitle}}</div>
				</div>
			</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>
	</div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_yxgz/orderlog_check/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_yxgz/orderlog_check/list/');
}
</script>

